<div>
	<h3><?php echo $this->lang->ORM_CNHANGES_WB_MADE;?>:</h3>
	<hr>
<?php
if(!$this->tableExists){
	echo $this->lang->ORM_TABLE_WB_CREATED;
}


if(isset($this->columns) && !empty($this->columns)){
  
    $addStr='';
    $deleteStr='';
    $changeStr='';
    
    foreach ($this->columns as $item){
        switch ($item['action']){
            case 'add'    : $addStr.= '<li>' . $item['name'] . '</li>';
                break;
            case 'change' : $changeStr.= '<li>' . $item['name'] . '</li>';
                break;
            case 'delete' : $deleteStr.= '<li>' . $item['name'] . '</li>';
                break;       
        }
    }
    
    if(strlen($deleteStr))
        echo '<h4>Fields to be deleted:</h4><ul class="ormUl">' , $deleteStr , '</ul>';
        
    if(strlen($addStr))
        echo '<h4>Fields to be added:</h4><ul class="ormUl">' , $addStr , '</ul>';

    if(strlen($changeStr))
        echo '<h4>Fields to be updated:</h4><ul class="ormUl">' , $changeStr , '</ul>';    
}

if(isset($this->indexes) && !empty($this->indexes)){
    $updateStr='';
    $deleteStr='';

    foreach ($this->indexes as $item){
        switch ($item['action']){
            case 'add'    : $addStr.='<li>' . $item['name'] . '</li><br>';
                break;
            case 'delete' : $deleteStr.='<li>' . $item['name'] . '</li><br>';
                break;       
        }
    }
    
    if(strlen($deleteStr))
        echo '<h4>Indexes to be deleted:</h4><ul class="ormUl">' , $deleteStr , '</ul>';
        
    if(strlen($addStr))
        echo '<h4>Indexes to be added:</h4><ul class="ormUl">' , $addStr , '</ul>';
}
?>
</div>